package com.galaxy.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.galaxy.common.mybatis.core.mapper.BaseMapperPlus;
import com.galaxy.common.mybatis.core.page.PageQuery;
import com.galaxy.order.domain.OrderReview;
import com.galaxy.order.domain.vo.OrderReviewVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderReviewMapper extends BaseMapperPlus<OrderReview, OrderReviewVo> {

    /**
     * 通过商品ID查询评论列表
     */
    IPage<OrderReviewVo> selectByProductId(@Param("productId") Long productId, Page<OrderReviewVo> page);
}
